package com.hhs.storage.bean;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author shadow
 * @since 2018-10-18
 */
@TableName("jxc_type")
@Data
public class JxcType extends Model<JxcType> {

    private static final long serialVersionUID = 1L;

    @TableId("id_")
    private String id;
    @TableField("pid_")
    private String pid;
    @TableField("name_")
    private String name;
    @TableField("type_")
    private String type;
    @TableField("create_time_")
    private Date createTime;

    @TableField(exist = false)
    private String typeName;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "JxcType{" +
        "id=" + id +
        ", pid=" + pid +
        ", name=" + name +
        ", type=" + type +
                "}";
    }
}
